package com.mingqijia.gassafety.webserver.constant;

/**
 * 设备常量类
 *
 * @author zhufeng
 * @since 2022/8/1
 */
public interface DeviceConstant {

    Integer IS_DELETED_0 = 0;

    Integer DEVICE_STATUS_0 = 0;

    String DEVICE_STATUS_0_INFO = "离线";

    Integer DEVICE_STATUS_1 = 1;

    String DEVICE_STATUS_1_INFO = "正常";
    //低报
    Integer DEVICE_STATUS_2 = 2;
    //高报
    Integer DEVICE_STATUS_3 = 3;
    //故障
    Integer DEVICE_STATUS_4 = 4;

    Integer DEVICE_STATUS_5 = 5;
    //报警
    Integer DEVICE_STATUS_6 = 6;

    Integer CONTROLLER_STATUS_0 = 0;

    Integer CONTROLLER_STATUS_1 = 1;

    Integer CONTROLLER_STATUS_2 = 2;

    Integer CONTROLLER_STATUS_3 = 3;

    //控制器工作状态 1-上电开机，
    Integer WORK_STATUS_1 = 1;
    // 2-设备掉电
    Integer WORK_STATUS_2 = 2;
    String WORK_STATUS_2_INFO = "设备掉电";
    // 4-紫荆WiFi报警器设备离线
    Integer WORK_STATUS_4 = 4;
    String WORK_STATUS_4_INFO = "设备离线";

    // 探测器报警类型
    Integer ALARM_TYPE_RECOVERY= 0;
    String ALARM_TYPE_RECOVERY_INFO = "报警恢复";

    Integer ALARM_TYPE_LOW = 1;
    String ALARM_TYPE_LOW_INFO = "低限报警";

    Integer ALARM_TYPE_HIGH = 2;
    String ALARM_TYPE_HIGH_INFO = "高限报警";

    Integer ALARM_TYPE_CHANGE =  3;
    String ALARM_TYPE_CHANGE_INFO = "变化检测";

    Integer ALARM_TYPE_ALERT =  5;
    String ALARM_TYPE_ALERT_INFO = "报警";

    String WiFi_COMMUNICATIONMODE="WiFi";

    Integer DETECTOR_STATUS_0 = 0;

    Integer DETECTOR_STATUS_17 = 17;
    String DETECTOR_STATUS_17_INFO = "主电故障";

    Integer DETECTOR_STATUS_18 = 18;
    String DETECTOR_STATUS_18_INFO = "备电故障";

    Integer DETECTOR_STATUS_19 = 19;
    String DETECTOR_STATUS_19_INFO = "控制器其他故障";

    //紫荆定制，报警器告警状态标识 0正常1报警9不涉及
    Integer ALARM_STATUS_0 = 0;
    Integer ALARM_STATUS_1 = 1;
    Integer ALARM_STATUS_9 = 9;

    //探测器状态
    Integer DETECTOR_STATUS_32 = 32;

    String DETECTOR_STATUS_32_INFO = "使用寿命到期";

    Integer DETECTOR_STATUS_33 = 33;

    String DETECTOR_STATUS_33_INFO = "探测器故障";

    Integer DETECTOR_STATUS_34 = 34;

    String DETECTOR_STATUS_34_INFO = "传感器故障";

    Integer DETECTOR_STATUS_35 = 35;

    String DETECTOR_STATUS_35_INFO = "电磁干扰";

    //接收器状态
    Integer RECEIVER_STATUS_OFFLINE= 0;
    String RECEIVER_STATUS_OFFLINE_INFO = "离线";

    Integer  RECEIVER_STATUS_NORMAL = 1;
    String  RECEIVER_STATUS_NORMAL_INFO = "正常";
    //电池款接收器电池状态
    Integer BATTERY_STATUS_BROKEN = 1;
    String BATTERY_STATUS_BROKEN_INFO= "电池欠压";

    Integer BATTERY_STATUS_NORMAL = 0;
    String BATTERY_STATUS_NORMAL_INFO = "电池正常";

    //电磁阀工作状态
    Integer VALVE_WORK_STATUS_NORMAL = 0;
    String VALVE_WORK_STATUS_NORMAL_INFO = "无故障";

    Integer VALVE_WORK_STATUS_BROKEN = 1;
    String  VALVE_WORK_STATUS_BROKEN_INFO = "故障";

    //阀门状态
    Integer VALVE_STATUS_OPEN = 0;
    String VALVE_STATUS_OPEN_INFO = "阀门开启";

    Integer  VALVE_STATUS_CLOSE = 1;
    String  VALVE_STATUS_CLOSE_INFO = "阀门关闭";

    //紫荆WiFi报警器故障状态
    Integer VALVE_BROKEN_STATUS_70 = 70;
    String VALVE_BROKEN_STATUS_70_INFO = "报警器故障";

    Integer VALVE_BROKEN_STATUS_71 = 71;
    String VALVE_BROKEN_STATUS_71_INFO = "电磁阀离线";

    Integer VALVE_BROKEN_STATUS_72 = 72;
    String VALVE_BROKEN_STATUS_72_INFO = "电磁阀短路";

    Integer VALVE_BROKEN_STATUS_73 = 73;
    String VALVE_BROKEN_STATUS_73_INFO = "电磁阀开路";

    Integer VALVE_BROKEN_STATUS_74 = 74;
    String VALVE_BROKEN_STATUS_74_INFO = "电磁阀欠压";

    /**
     * 电磁阀设备连接，0表示未连接，1表示已连接，其他数字代表电磁阀ID且已连接
     */
    Integer VALVE_CONNECTION_0 = 0;
    Integer VALVE_CONNECTION_1 = 1;
    /**
     * 电磁阀工作状态，0正常，1故障
     */
    Integer VALVE_WORK_STATUS_0 = 0;
    Integer VALVE_WORK_STATUS_1 = 1;
    /**
     * 电磁阀门状态，0开，1关
     */
    Integer VALVE_STATUS_0 = 0;
    Integer VALVE_STATUS_1 = 1;

}
